<?php

namespace Emoney\EpayBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of TmpPaymentType
 *
 * @author FFOZEU
 */
class StorePaymentType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
	 $builder->add('paymtmode', 'entity', array('class' => 'Emoney\EpayBundle\Entity\PayementMode',
	 'property' => 'title',
	 'expanded' => true,
	 'multiple' => false,
	 'required' => true,
     'label'    => 'Mode'  
				)); 
		
		$builder->add('ref', 'text', array('max_length' => 255, 'required' => true, 'label' => utf8_encode('N° transction')));		
		$builder->add('cmdId', 'text', array('max_length' => 255, 'required' => true, 'label' => 'Commande'));
		$builder->add('montant', 'text', array('max_length' => 120, 'required' => false, 'label' => 'Montant'));
		$builder->add('sitenameId', 'text', array( 'max_length' => 120, 'required' => true, 'label' => 'Site web'));
        $builder->add('phone', 'text', array( 'max_length' => 120, 'required' => true, 'label' => 'Phone'));			

    }

    public function getName()
    {
        return 'storePayment';
    }
    
    public function getDefaultOptions(array $options)
    {
        return array(
            'data_class' => 'Emoney\EpayBundle\Entity\StorePayment',
        );
    }
}

?>
